package com.woniu.service.impl;

import com.woniu.dao.EvaluateServiceMapper;
import com.woniu.dao.EvaluatedtoMapper;
import com.woniu.pojo.EvaluateService;
import com.woniu.pojo.Evaluatedto;
import com.woniu.service.ServiceEvaluateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServiceEvaluateServiceimpl implements ServiceEvaluateService {

    @Autowired
    private EvaluateServiceMapper evaluateServiceMapper;
    @Autowired
    private EvaluatedtoMapper evaluatedtoMapper;

    @Override
    public void addevaluate(EvaluateService evaluateService) {
        evaluateServiceMapper.insert(evaluateService);
    }

    @Override
    public List<Evaluatedto> selectevaluateByServiceid(Integer Serviceid) {
       return evaluatedtoMapper.findevaluateByserviceid(Serviceid);
    }
}
